<template>
  <div>
    <h1>{{msg}}</h1>
    <h2>{{obj.name}}</h2>
    <h3>{{obj.age}}</h3>
    <a v-bind:href="url">我是a标签</a>
    <p>你要购买商品的数量：{{count}}</p>
    <button v-on:click="addFn">点击增加</button>
  </div>
</template>

<script>

export default {
  data(){
    return {
      msg: 'hello word',
      url: "https://www.baidu.com",
      count:0,
      obj: {
        name: '小vue',
        age: 5
      }
    }
  },
  methods:{
    addFn(){
      this.count += 1
    }
  }
}
</script>

<style scoped>

</style>
